package org.springbus.ff;

import org.springbus.ff.conf.FFBaseConf;
import org.springbus.ff.core.FFBase;
import org.springbus.ff.node.FFCon;
import org.springbus.ff.node.FFScene;

import java.util.ArrayList;
import java.util.List;

public class FFCreator extends FFCon {

    public FFCreator(FFBaseConf conf) {
        super(conf,"creator");
    }

    public  void  start(){
        List<FFScene> sceneList= new ArrayList<>();
        for(FFBase c:this.children){
            sceneList.add((FFScene) c);
        }
        for(FFScene scene: sceneList){
            scene.start();
        }

    }

}
